package com.example;
import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        Dish1 first=new Dish1();
        System.out.println("菜名："+first.getName()+"价格："+first.getPrice());
        first.profile();
        Dish2 second=new Dish2();
        System.out.println("菜名："+second.getName()+"价格："+second.getPrice());
        second.profile();
        List<Order> order=new ArrayList<>();
        order.add(new Dish1());
        order.add(new Dish2());
        Syetem s1=new Syetem();
        s1.manageOrder(order);
       
    }
}